<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{dwhRpt045Bean.id}"/>
		<f:event type="preRenderView" listener="#{dwhRpt045Bean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Dwh Rpt 045"/>

	<ui:define name="header">
		Dwh Rpt 045
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty dwhRpt045Bean.id}">
				Edit existing Dwh Rpt 045
			</c:when>
			<c:otherwise>
				Create a new Dwh Rpt 045
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="dwhRpt045BeanDwhRpt045RecNo" value="Rec No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045RecNo" required="true" value="#{dwhRpt045Bean.dwhRpt045.recNo}"/>
					<h:message for="dwhRpt045BeanDwhRpt045RecNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045CreatedDtm" value="Created Dtm:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045CreatedDtm" maxLength="19" value="#{dwhRpt045Bean.dwhRpt045.createdDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="dwhRpt045BeanDwhRpt045CreatedDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045OrgNo" value="Org No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045OrgNo" value="#{dwhRpt045Bean.dwhRpt045.orgNo}"/>
					<h:message for="dwhRpt045BeanDwhRpt045OrgNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045LoanContractGrpNo" value="Loan Contract Grp No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045LoanContractGrpNo" value="#{dwhRpt045Bean.dwhRpt045.loanContractGrpNo}"/>
					<h:message for="dwhRpt045BeanDwhRpt045LoanContractGrpNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045YearNo" value="Year No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045YearNo" value="#{dwhRpt045Bean.dwhRpt045.yearNo}"/>
					<h:message for="dwhRpt045BeanDwhRpt045YearNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045MonthNo" value="Month No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045MonthNo" value="#{dwhRpt045Bean.dwhRpt045.monthNo}"/>
					<h:message for="dwhRpt045BeanDwhRpt045MonthNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045ContractRecNo" value="Contract Rec No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045ContractRecNo" value="#{dwhRpt045Bean.dwhRpt045.contractRecNo}"/>
					<h:message for="dwhRpt045BeanDwhRpt045ContractRecNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045ContractCode" value="Contract Code:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045ContractCode" maxLength="10" value="#{dwhRpt045Bean.dwhRpt045.contractCode}"/>
					<h:message for="dwhRpt045BeanDwhRpt045ContractCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045ContractOrgName" value="Contract Org Name:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045ContractOrgName" maxLength="200" value="#{dwhRpt045Bean.dwhRpt045.contractOrgName}"/>
					<h:message for="dwhRpt045BeanDwhRpt045ContractOrgName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045CustName" value="Cust Name:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045CustName" maxLength="200" value="#{dwhRpt045Bean.dwhRpt045.custName}"/>
					<h:message for="dwhRpt045BeanDwhRpt045CustName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045PayTerm" value="Pay Term:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045PayTerm" maxLength="50" value="#{dwhRpt045Bean.dwhRpt045.payTerm}"/>
					<h:message for="dwhRpt045BeanDwhRpt045PayTerm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045InstallmentPerMonthVal" value="Installment Per Month Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045InstallmentPerMonthVal" value="#{dwhRpt045Bean.dwhRpt045.installmentPerMonthVal}"/>
					<h:message for="dwhRpt045BeanDwhRpt045InstallmentPerMonthVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045InstallmentVal" value="Installment Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045InstallmentVal" value="#{dwhRpt045Bean.dwhRpt045.installmentVal}"/>
					<h:message for="dwhRpt045BeanDwhRpt045InstallmentVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045PendingInstallmentVal" value="Pending Installment Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045PendingInstallmentVal" value="#{dwhRpt045Bean.dwhRpt045.pendingInstallmentVal}"/>
					<h:message for="dwhRpt045BeanDwhRpt045PendingInstallmentVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045PendingInterestVal" value="Pending Interest Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045PendingInterestVal" value="#{dwhRpt045Bean.dwhRpt045.pendingInterestVal}"/>
					<h:message for="dwhRpt045BeanDwhRpt045PendingInterestVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045InstallmentValMustPay" value="Installment Val Must Pay:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045InstallmentValMustPay" value="#{dwhRpt045Bean.dwhRpt045.installmentValMustPay}"/>
					<h:message for="dwhRpt045BeanDwhRpt045InstallmentValMustPay" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045InstallmentRemainVal" value="Installment Remain Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045InstallmentRemainVal" value="#{dwhRpt045Bean.dwhRpt045.installmentRemainVal}"/>
					<h:message for="dwhRpt045BeanDwhRpt045InstallmentRemainVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045PayInstallmentVal" value="Pay Installment Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045PayInstallmentVal" value="#{dwhRpt045Bean.dwhRpt045.payInstallmentVal}"/>
					<h:message for="dwhRpt045BeanDwhRpt045PayInstallmentVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045PendingNewInstallmentVal" value="Pending New Installment Val:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045PendingNewInstallmentVal" value="#{dwhRpt045Bean.dwhRpt045.pendingNewInstallmentVal}"/>
					<h:message for="dwhRpt045BeanDwhRpt045PendingNewInstallmentVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045CreditAnalystEmpName" value="Credit Analyst Emp Name:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045CreditAnalystEmpName" maxLength="200" value="#{dwhRpt045Bean.dwhRpt045.creditAnalystEmpName}"/>
					<h:message for="dwhRpt045BeanDwhRpt045CreditAnalystEmpName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="dwhRpt045BeanDwhRpt045LoanGradeNo" value="Loan Grade No:"/>
				<h:panelGroup>
					<h:inputText id="dwhRpt045BeanDwhRpt045LoanGradeNo" value="#{dwhRpt045Bean.dwhRpt045.loanGradeNo}"/>
					<h:message for="dwhRpt045BeanDwhRpt045LoanGradeNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{dwhRpt045Bean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty dwhRpt045Bean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{dwhRpt045Bean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{dwhRpt045Bean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>